get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)

add_llvm_executable(wafer-translate
  wafer-translate.cpp
)

llvm_update_compile_flags(wafer-translate)
target_link_libraries(wafer-translate
  PRIVATE
  ${dialect_libs}
  ${translation_libs}
)
mlir_check_link_libraries(wafer-translate)
